package pucp.manager;

import android.content.Context;
import android.content.SharedPreferences;

public class ManagerCarpooling {
	public static ManagerCarpooling managercarpooling = new ManagerCarpooling();

	public static ManagerCarpooling getInstance() {
		return managercarpooling;
	}

	public static final String SHARED_PREFERENCE_GLOBAL = "GLOBAL";
	public static final String PROPERTY_REG_ID = "reg_id";

	public void storeRegistrationID(Context context, String regID) {
		SharedPreferences prefs = context.getSharedPreferences(
				SHARED_PREFERENCE_GLOBAL, Context.MODE_PRIVATE);
		SharedPreferences.Editor editor = prefs.edit();
		editor.putString(PROPERTY_REG_ID, regID);
		editor.commit();
	}
}
